#ifndef CONNECTIONS_H
#define CONNECTIONS_H

#include "HeadersAndMacros.h"

class Connections
{
	public:
	
		static SOCKET OpenConnection(int port, int behaviour, char *ip, bool type, bool protocol);
		static bool ListenForConnection(SOCKET socket);
		static bool EstablishConnection(struct sockaddr_in server, SOCKET connection);
		static bool StartServer(int port, int behaviour, bool type, SOCKET connection, BOOL protocol);
		static void GetServer(char* ip, int port, struct sockaddr_in *server);
		static bool Start_TCPClient(char *ip, int port, SOCKET connection);
		static void WSAFatal(char* message, char* header);

	private:

		Connections() {}
};

#endif
